package com.example.demo.dto.common;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.demo.entity.Consultant;

import java.util.List;

/**
 * 前后端通用的 Input / Output 数据交换Model
 */
public class ConsultantListModel {
    public static final String CONSULTANTINFOLISTNAME = "consultant_list";

    private List<ConsultantModel> consultant_list;

    public ConsultantListModel() {}

    public ConsultantListModel(List<ConsultantModel> consultant_list) {
        this.consultant_list = consultant_list;
    }

    @JSONField(name = CONSULTANTINFOLISTNAME)
    public List<ConsultantModel> getConsultant_list() {
        return consultant_list;
    }

    @JSONField(name = CONSULTANTINFOLISTNAME)
    public void setConsultant_list(List<ConsultantModel> consultant_list) {
        this.consultant_list = consultant_list;
    }

    @Override
    public String toString() {
        return "ConsultantListModel{" +
                "consultant_list=" + consultant_list +
                '}';
    }
}
